<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
    <button @click="$router.push({ name: 'svg' })">svg</button>
    <button @click="$router.push({ name: 'module' })">模块</button>
    <button @click="$router.push({ name: 'render' })">渲染函数</button>
    <button @click="$router.push({ name: 'double-bind' })">双向绑定</button>
    <button @click="$router.push({ name: 'slot' })">slot插槽</button>
    <button @click="$router.push({ name: 'lifeLoop' })">vue生命周期</button>
    <button @click="$router.push({ name: 'functional' })">函数式组件</button>
    <button @click="$router.push({ name: 'focus' })">自定义指令</button>
    <button @click="$router.push({ name: 'provide' })">provide</button>
    <button @click="$router.push({ name: 'form' })">form</button>
    <button @click="$router.push({ name: 'demo' })">demo</button>
    <button @click="$router.push({ name: 'CSS' })">CSS</button>
    <p class="side"></p>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
button {
  margin: 10px;
}
.side {
  width: 100%;
  height: 1px;
  background: rgb(130, 179, 224);
}
</style>
